﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using LocalView;
using RemoteConnector;

namespace CloudOfficeEngine
{
    public class COE
    {
        //ILocalView m_local_view;
        //IRemoteConnector m_remote_connector;

        public COE(ILocalView lv, IRemoteConnector rc)
        {
            lv.Login += rc.Login;
            lv.GetContacts += rc.GetContacts;
            lv.GetDocuments += rc.GetDocuments;
            lv.GetFolders += rc.GetFolders;
            lv.UploadDocument += rc.UploadDocument;
            lv.UpdateDocument += rc.UpdateDocument;
            lv.DownloadDocument += rc.DownloadDocument;
            lv.ShareDocument += rc.ShareDocument;
            lv.LookForDocument += rc.LookForDocument;
            lv.OpenDocumentInCloud += rc.OpenDocumentInCloud;
            lv.GetDocumentAcl += rc.GetDocumentAcl;

            //.....
        }
    }
}
